﻿<link href="@Url.Content("~/content/activitie_detail.css")" rel="stylesheet" type="text/css"/>

@model PessMvc.Models.CountyAdminModel

@{
    ViewBag.Title = "EditCountyAdmin";
}

<div id="m-title">
    <h2>编辑区县管理员信息</h2>
    <div id="m-op">
            @using (Html.BeginForm("DeleteCountyAdmin", "Account", FormMethod.Post))
            {
                @Html.Hidden("UserName", new { UserName = Model.UserName });
                <input type="submit" value="删除用户" class="u-btn" />
            }
        &#8195; @Html.ActionLink("返回区县管理员列表", "CountyAdmins")
    </div>
</div>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset class="fly-edit fly-edit-new">
        <div class="m-sd-xx m-sd-title">
            <div class="title">
                @Html.DisplayFor(model => model.UserName)（@Html.DisplayFor(model => model.CountyName)）
            </div>
            <div class="sidebd">
                <div class="editor-label">
                    @*@Html.LabelFor(model => model.Email)*@&#8195; 电子邮件
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.Email)
                    @Html.ValidationMessageFor(model => model.Email)
                </div>

                <div class="editor-label">
                </div>
                <div class="editor-field">
                        <input type="submit" value="保存" class="u-btn u-btn-save3" />
                        @Html.ActionLink("重置密码", "ResetPassword", "Account", new
{
    userName = Model.UserName,
    returnUrl = HttpContext.Current.Request.RawUrl
}, new { @class = "u-btn-a u-btn-reset" })
                </div>
            </div>
        </div>

        @*<div class="editor-label">
            
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.UserName)
            @Html.ValidationMessageFor(model => model.UserName)
        </div>*@

        @*<div class="editor-label">
            @Html.LabelFor(model => model.Password)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Password)
            @Html.ValidationMessageFor(model => model.Password)
        </div>*@

        @*<div class="editor-label">
            @Html.LabelFor(model => model.CountyCode)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CountyCode)
            @Html.ValidationMessageFor(model => model.CountyCode)
        </div>*@

        @*<div class="editor-label">
            @Html.LabelFor(model => model.CountyName)
            
        </div>*@
        @*<div class="editor-field">
            @Html.EditorFor(model => model.CountyName)
            @Html.ValidationMessageFor(model => model.CountyName)
        </div>*@


    </fieldset>
}
@*<div>@Html.ActionLink("重置密码", "ResetPassword", "Account", new {userName=Model.UserName },null)</div>*@

@*Form不能嵌套在Form里！！！*@
@*<div>@Html.ActionLink("重置密码", "ResetPassword", "Account", new {userName=Model.UserName },null)</div>*@
